<div class="box-tools" style="top:10px;">
  <form action="{:url('Invest/index')}" method="GET" pjax-search="" class="form-inline" id="invest-form">
    <div class="form-group">
      <label for="search">关键字</label>
      <input type="text" name="search" id="search" class="form-control" value="{:input('get.search')}"
             placeholder="{$Think.lang.search}"/>
    </div>
    <div class="form-group">
      <button type="submit" class="btn btn-primary sreachs">搜索</button>
      <button type="button" class="btn btn-primary" onclick="resetForm()">重置</button>
    </div>
  </form>
</div>
<script>
    function resetForm() {
        $('input[name="search"]').val('')
        $('#invest-form').submit()
    }
</script>
